package com.ef.service.impl;

import com.ef.constant.StatusType;
import com.ef.dao.FAQDao;
import com.ef.domain.FAQ;
import com.ef.service.FAQService;
import com.ef.util.CustomExample;
import com.ef.util.PaginationSupport;

public class FAQServiceImpl extends BaseServiceImpl implements FAQService {

	private FAQDao fAQDao;

 
	public void delete(FAQ entity) {
		entity.setStatus(StatusType.INVALID);
		fAQDao.delete(entity);

	}

 
	public PaginationSupport<FAQ> findByExample(CustomExample<FAQ> example,
			int startIndex, int pageSize) {

		return fAQDao.findPageByExample(example, startIndex, pageSize);
	}

 
	public FAQ findById(Long id) {

		return fAQDao.findById(id);
	}

	 
	public void saveOrUpdate(FAQ entity) {

		fAQDao.saveOrUpdate(entity);
	}

	public FAQDao getfAQDao() {
		return fAQDao;
	}

	public void setfAQDao(FAQDao fAQDao) {
		this.fAQDao = fAQDao;
	}

}
